inspector: Reset the treewalk when required
authorMatthias Clasen <mclasen@redhat.com>
Fri, 11 Mar 2016 18:52:36 +0000 (13:52 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 11 Mar 2016 18:53:57 +0000 (13:53 -0500)
commit5e68c4e62dedbdbf620ae4d016ac38cb1732a5e3
tree7a9de8be2583978f19e16cf4b9d25b9a2f38ccc0
parent2e34ce8f7ccf69c0c177a225b8a0b034b6c19fcb
inspector: Reset the treewalk when required

The tree walk holds a tree iter, which will become invalid
when we either remove the row that it points to or remove
all rows.

Reset the tree walk in those cases to avoid a crash that
was pointed out by Bastien Nocera.
gtk/inspector/object-tree.c